<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>微信授权返回页面</title>
    <style type="text/css">
        <!--
        body,td,th {
            color: #FFFFFF;
        }
        body {
            background-color: #0099CC;
        }
        .STYLE7 {
            font-size: 24px;
            font-family: "微软雅黑";
        }
        .STYLE9 {font-size: 16px}
        .STYLE12 {
            font-size: 100px;
            font-family: "微软雅黑";
        }
        -->
    </style></head>
<script src="/public__STATIC__/admin/lib/jquery/1.9.1/jquery.min.js"></script>
<body>
{if condition="$data['code']=='success'"}

<script>
    var i = 6;
    function clock() {
        i = i - 1
        $('.msgClose').html("本窗口将在" + i + "秒后自动关闭!");
        if (i > 0) {
            setTimeout("clock();", 1000);
        }
        else {
            var userAgent = navigator.userAgent;
            if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") != -1) {
//                    window.location.href = "about:blank";
                window.close();
            } else {
                window.opener = null;
                window.open("", "_self");
                window.close();
            }
        }
    }
    clock();
</script>
<span class="STYLE12">&nbsp;:)</span>
<p class="STYLE7">{$data['msg']}<br /></p>
<p class="msgClose"></p>
{else /}
<span class="STYLE12">&nbsp;:(</span>
<p class="STYLE7">{$data['msg']}<br /></p>
{/if}
</body>
</html>